Defining one to one and one to many relationships in node js